// 导出路由规则数组对象
export default [
  // 重定向
  {
    path: '',
    redirect: '/home'
  },
  {
    path: '/home',
    name: 'Home',
    component: () => import('../views/home/Home'),
    meta: {
      title: '首页'
    }
  },
  {
    path: '/category',
    name: 'Category',
    component: () => import('../views/category/Category'),
    meta: {
      title: '商品分类'
    }
  },
  {
    path: '/cart',
    name: 'Cart',
    component: () => import('../views/cart/Cart'),
    meta: {
      title: '购物车'
    }
  },
  {
    path: '/profile',
    name: 'Profile',
    component: () => import('../views/profile/Profile'),
    meta: {
      title: '我的信息'
    }
  },
  {
    path:'/detail/:iid',
    name: 'Dteail',
    component: () => import('../views/detail/Detail'),
    meta:{
       title: '商品信息'
    }
  }
]

